package org.pine.actuator;

import org.springframework.boot.actuate.info.Info;
import org.springframework.boot.actuate.info.InfoContributor;
import org.springframework.stereotype.Component;

import java.util.HashMap;
import java.util.Map;

/**
 * 自定义信息
 * @author liucs
 */
@Component
public class PineInfo implements InfoContributor {
    @Override
    public void contribute(Info.Builder builder) {
        Map<String, String> info = new HashMap<>();
        info.put("name", "木公");
        info.put("email", "liucs518@126.com");
        info.put("city","河南-郑州");
        builder.withDetail("author", info);
    }
}
